<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的接单 - 模切材料小管家</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            /* TDesign 工业品色彩系统 */
            --primary-color: #0052d9;
            --primary-light: #266fe8;
            --primary-dark: #003cab;
            --secondary-color: #f2f3ff;
            --accent-color: #e37318;
            --success-color: #00a870;
            --warning-color: #ed7b2f;
            --error-color: #d54941;
            
            /* 背景色系 */
            --bg-color-page: #f5f7fa;
            --bg-color-container: #ffffff;
            --bg-color-secondray: #f8f9fc;
            
            /* 边框和分割线 */
            --border-color: #e7e7e7;
            --border-color-light: #f0f0f0;
            --border-radius-small: 3px;
            --border-radius-medium: 6px;
            --border-radius-large: 9px;
            
            /* 文字色彩 */
            --text-primary: #1a1a1a;
            --text-secondary: #4e5969;
            --text-placeholder: #86909c;
            --text-disabled: #c9cdd4;
            
            /* 阴影系统 */
            --shadow-1: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            --shadow-2: 0 1px 4px 0 rgba(0, 0, 0, 0.08);
            --shadow-3: 0 4px 8px 0 rgba(0, 0, 0, 0.12);
            
            /* 间距系统 */
            --space-1: 4px;
            --space-2: 8px;
            --space-3: 12px;
            --space-4: 16px;
            --space-5: 20px;
            --space-6: 24px;
            --space-8: 32px;
            --space-10: 40px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }
        
        body {
            background-color: var(--bg-color-page);
            color: var(--text-primary);
            font-size: 14px;
            line-height: 1.5;
            padding-bottom: 64px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        .container {
            max-width: 480px;
            margin: 0 auto;
            background: var(--bg-color-container);
            min-height: 100vh;
            box-shadow: var(--shadow-1);
            position: relative;
            overflow-x: hidden;
        }
        
        /* 头部样式 - TDesign 简约风格 */
        .header {
            background: var(--primary-color);
            color: white;
            padding: var(--space-4) var(--space-4) var(--space-5);
            position: relative;
            z-index: 10;
        }
        
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--space-4);
        }
        
        .back-btn {
            font-size: 18px;
            cursor: pointer;
            opacity: 0.9;
            transition: opacity 0.2s ease;
        }
        
        .back-btn:hover {
            opacity: 1;
        }
        
        .page-title {
            font-weight: 500;
            font-size: 16px;
        }
        
        .actions {
            display: flex;
            gap: var(--space-5);
        }
        
        .actions i {
            font-size: 16px;
            cursor: pointer;
            opacity: 0.9;
            transition: opacity 0.2s ease;
        }
        
        .actions i:hover {
            opacity: 1;
        }
        
        .search-box {
            background: rgba(255,255,255,0.15);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius: var(--border-radius-medium);
            padding: var(--space-2) var(--space-3);
            display: flex;
            align-items: center;
            transition: all 0.2s ease;
        }
        
        .search-box:focus-within {
            background: rgba(255,255,255,0.25);
            border-color: rgba(255,255,255,0.4);
        }
        
        .search-box i {
            margin-right: var(--space-2);
            color: rgba(255,255,255,0.7);
            font-size: 14px;
        }
        
        .search-box input {
            background: transparent;
            border: none;
            color: white;
            width: 100%;
            font-size: 14px;
            outline: none;
        }
        
        .search-box input::placeholder {
            color: rgba(255,255,255,0.6);
        }
        
        /* 筛选栏 - TDesign 简约风格 */
        .filter-bar {
            background: var(--bg-color-container);
            padding: var(--space-3) var(--space-4);
            border-bottom: 1px solid var(--border-color-light);
            display: flex;
            gap: var(--space-2);
            align-items: center;
        }
        
        .filter-item {
            padding: var(--space-1) var(--space-3);
            border-radius: var(--border-radius-small);
            font-size: 12px;
            background: var(--bg-color-secondray);
            color: var(--text-secondary);
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
            border: 1px solid var(--border-color-light);
        }
        
        .filter-item:hover {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        .filter-item.active {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }
        
        .city-filter-btn {
            background: var(--bg-color-secondray);
            color: var(--text-secondary);
            border: 1px solid var(--border-color-light);
            padding: var(--space-2) var(--space-4);
            border-radius: var(--border-radius-small);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: var(--space-1);
        }
        
        .city-filter-btn:hover {
            background: var(--border-color-light);
        }
        
        .city-filter-btn i {
            font-size: 10px;
        }
        
        .filter-spacer {
            flex: 1;
        }
        
        .category-filter-btn {
            background: var(--accent-color);
            color: white;
            border: none;
            padding: var(--space-2) var(--space-4);
            border-radius: var(--border-radius-small);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: var(--space-1);
        }
        
        .category-filter-btn:hover {
            background: #c5611d;
        }
        
        .category-filter-btn i {
            font-size: 10px;
        }
        
        .category-filter-btn.filtered {
            background: var(--primary-color);
        }
        
        .category-filter-btn.filtered:hover {
            background: var(--primary-dark);
        }
        
        /* 散料列表 - TDesign 简约风格 */
        .bulk-materials {
            padding: var(--space-4);
        }
        
        .section-title {
            font-size: 14px;
            font-weight: 500;
            margin-bottom: var(--space-4);
            color: var(--text-primary);
            display: flex;
            align-items: center;
        }
        
        .section-title i {
            margin-right: var(--space-2);
            color: var(--error-color); /* 红色，对应散料主题色 */
            font-size: 14px;
        }
        
        .material-list {
            display: flex;
            flex-direction: column;
            gap: var(--space-3);
        }
        
        .material-item {
            background: var(--bg-color-container);
            border-radius: var(--border-radius-medium);
            padding: var(--space-4);
            box-shadow: var(--shadow-1);
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.34, 0.69, 0.1, 1);
            border: 1px solid var(--border-color-light);
            position: relative;
            overflow: hidden;
        }
        
        .material-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 3px;
            height: 100%;
            background: var(--error-color); /* 对应首页找散料红色 */
            border-radius: var(--border-radius-medium) 0 0 var(--border-radius-medium);
        }
        
        /* 散料状态标签保持绿色，表示库存状态 */
        .material-status {
            background: var(--success-color);
            color: white;
            font-size: 10px;
            padding: var(--space-1) var(--space-2);
            border-radius: var(--border-radius-small);
            margin-left: var(--space-2);
        }
        
        .material-item:hover {
            border-color: var(--primary-color);
            box-shadow: var(--shadow-2);
        }
        
        .material-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: var(--space-2);
        }
        
        .material-title {
            font-weight: 500;
            font-size: 14px;
            color: var(--text-primary);
            flex: 1;
            margin-right: var(--space-2);
        }
        
        .result-type {
            color: white;
            font-size: 10px;
            padding: var(--space-1) var(--space-2);
            border-radius: var(--border-radius-small);
            flex-shrink: 0;
        }
        
        /* 材料类型样式 - 对应首页找材料橙色 */
        .material-item[data-category="material"] .result-type {
            background: var(--accent-color);
        }
        
        /* 加工类型样式 - 对应首页找加工蓝色 */
        .material-item[data-category="processing"] .result-type {
            background: var(--primary-light);
        }
        
        .material-desc {
            color: var(--text-secondary);
            font-size: 12px;
            margin-bottom: var(--space-3);
            line-height: 1.4;
        }
        
        .material-specs {
            display: flex;
            flex-wrap: wrap;
            gap: var(--space-2);
            margin-bottom: var(--space-3);
        }
        
        .spec-tag {
            background: var(--bg-color-secondray);
            color: var(--text-secondary);
            font-size: 11px;
            padding: var(--space-1) var(--space-2);
            border-radius: var(--border-radius-small);
            border: 1px solid var(--border-color-light);
        }
        
        .material-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: var(--text-placeholder);
            font-size: 11px;
        }
        
        .material-company {
            display: flex;
            align-items: center;
        }
        
        .material-company i {
            margin-right: var(--space-1);
            color: var(--primary-color);
            font-size: 10px;
        }
        
        .material-price {
            color: var(--accent-color);
            font-weight: 500;
            font-size: 14px;
        }
        
        .material-stock {
            color: var(--success-color);
            font-size: 11px;
            margin-top: var(--space-1);
        }
        
        .material-info {
            margin-top: var(--space-3);
        }
        
        .info-row {
            display: flex;
            margin-bottom: var(--space-2);
            font-size: 12px;
            line-height: 1.4;
        }
        
        .info-label {
            color: var(--text-placeholder);
            min-width: 80px;
            flex-shrink: 0;
        }
        
        .info-value {
            color: var(--text-secondary);
            flex: 1;
        }
        
        /* 特殊标签 */
        .hot-tag {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--accent-color);
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 8px;
        }
        
        
        /* 底部导航 - TDesign 简约风格 */
        .tabbar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--bg-color-container);
            display: flex;
            border-top: 1px solid var(--border-color);
            z-index: 100;
            max-width: 480px;
            margin: 0 auto;
            height: 64px;
        }
        
        .tab-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: var(--space-2) 0;
            color: var(--text-placeholder);
            font-size: 10px;
            cursor: pointer;
            transition: color 0.2s ease;
        }
        
        .tab-item.active {
            color: var(--primary-color);
        }
        
        .tab-item:hover {
            color: var(--primary-light);
        }
        
        .tab-item i {
            font-size: 18px;
            margin-bottom: var(--space-1);
        }
        
        /* 空状态 - TDesign 简约风格 */
        .empty-state {
            text-align: center;
            padding: var(--space-10) var(--space-5);
            color: var(--text-placeholder);
        }
        
        .empty-state i {
            font-size: 48px;
            margin-bottom: var(--space-4);
            color: var(--border-color);
        }
        
        .empty-state h3 {
            font-size: 14px;
            margin-bottom: var(--space-2);
            color: var(--text-secondary);
            font-weight: 500;
        }
        
        .empty-state p {
            font-size: 12px;
            line-height: 1.5;
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 头部区域 -->
        <div class="header">
            <div class="top-bar">
                <div class="back-btn" onclick="history.back()">
                    <i class="fas fa-arrow-left"></i>
                </div>
                <div class="page-title">我的接单</div>
                <div class="actions">
                </div>
            </div>
            
            <div class="search-box">
                <i class="fas fa-search"></i>
                <input type="text" placeholder="搜索接单名称、规格或客户...">
            </div>
        </div>
        
        <!-- 筛选栏 -->
        <div class="filter-bar">
            <div class="filter-item active" onclick="filterNational()">全国</div>
            <button class="city-filter-btn" onclick="showCityModal()">
                <i class="fas fa-map-marker-alt"></i>
                城市
            </button>
            <div class="filter-spacer"></div>
            <button class="category-filter-btn" onclick="showCategoryModal()">
                <i class="fas fa-filter"></i>
                分类筛选
            </button>
        </div>
        
        <!-- 散料列表 -->
        <div class="bulk-materials">
            
            <div class="material-list">
                <!-- 散料项目1 -->
                <div class="material-item" data-category="material" onclick="location.href='my-orders-detail.html'">
                    <div class="material-header">
                        <div class="material-title">单面胶带散料</div>
                        <div class="result-type">材料</div>
                    </div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">型号:</span>
                            <span class="info-value">ST-001</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">发布时间:</span>
                            <span class="info-value">2024-01-15</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">所在地:</span>
                            <span class="info-value">浙江杭州</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">规格/数量:</span>
                            <span class="info-value">宽度25-75mm，厚度0.1-0.2mm，约500kg</span>
                        </div>
                    </div>
                </div>
                
                <!-- 散料项目2 -->
                <div class="material-item" data-category="material" onclick="location.href='my-orders-detail.html'">
                    <div class="material-header">
                        <div class="material-title">OCA光学胶散料</div>
                        <div class="result-type">材料</div>
                    </div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">型号:</span>
                            <span class="info-value">OCA-002</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">发布时间:</span>
                            <span class="info-value">2024-01-14</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">所在地:</span>
                            <span class="info-value">江苏苏州</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">规格/数量:</span>
                            <span class="info-value">厚度0.05-0.2mm，透光率90%+，约200kg</span>
                        </div>
                    </div>
                </div>
                
                <!-- 散料项目3 -->
                <div class="material-item" data-category="processing" onclick="location.href='my-orders-detail.html'">
                    <div class="material-header">
                        <div class="material-title">双面胶带模切加工</div>
                        <div class="result-type">加工</div>
                    </div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">型号:</span>
                            <span class="info-value">DT-003</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">发布时间:</span>
                            <span class="info-value">2024-01-13</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">所在地:</span>
                            <span class="info-value">广东深圳</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">规格/数量:</span>
                            <span class="info-value">宽度10-30mm，厚度0.08-0.15mm，约300kg</span>
                        </div>
                    </div>
                </div>
                
                <!-- 散料项目4 -->
                <div class="material-item" data-category="material" onclick="location.href='my-orders-detail.html'">
                    <div class="material-header">
                        <div class="material-title">PET保护膜散料</div>
                        <div class="result-type">材料</div>
                    </div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">型号:</span>
                            <span class="info-value">PET-004</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">发布时间:</span>
                            <span class="info-value">2024-01-12</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">所在地:</span>
                            <span class="info-value">广东东莞</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">规格/数量:</span>
                            <span class="info-value">厚度0.05-0.12mm，宽度20-100mm，约150kg</span>
                        </div>
                    </div>
                </div>
                
                <!-- 散料项目5 -->
                <div class="material-item" data-category="material" onclick="location.href='my-orders-detail.html'">
                    <div class="material-header">
                        <div class="material-title">导电胶带散料</div>
                        <div class="result-type">材料</div>
                    </div>
                    <div class="material-info">
                        <div class="info-row">
                            <span class="info-label">型号:</span>
                            <span class="info-value">DT-005</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">发布时间:</span>
                            <span class="info-value">2024-01-11</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">所在地:</span>
                            <span class="info-value">江苏无锡</span>
                        </div>
                        <div class="info-row">
                            <span class="info-label">规格/数量:</span>
                            <span class="info-value">电阻<0.1Ω，厚度0.08-0.15mm，约100kg</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 底部导航 -->
        <div class="tabbar">
            <div class="tab-item">
                <i class="fas fa-home"></i>
                <span>首页</span>
            </div>
            <div class="tab-item">
                <i class="fas fa-search"></i>
                <span>求购</span>
            </div>
            <div class="tab-item">
                <i class="fas fa-plus-circle"></i>
                <span>发布</span>
            </div>
            <div class="tab-item">
                <i class="fas fa-comments"></i>
                <span>客服</span>
            </div>
            <div class="tab-item active">
                <i class="fas fa-user"></i>
                <span>我的</span>
            </div>
        </div>
    </div>
    
    <script>
        // 城市筛选
        function filterNational() {
            document.querySelectorAll('.filter-item').forEach(item => {
                item.classList.remove('active');
            });
            document.querySelector('.filter-item').classList.add('active');
            console.log('筛选: 全国');
        }

        // 显示城市选择弹窗
        function showCityModal() {
            alert('城市筛选功能开发中...');
        }

        // 显示分类筛选弹窗
        function showCategoryModal() {
            // 简化版分类筛选
            const categories = ['全部分类', '加工', '材料'];
            const selected = prompt('请选择分类：\n0 - 全部分类\n1 - 加工\n2 - 材料\n\n请输入序号：');
            
            if (selected !== null && selected >= 0 && selected < categories.length) {
                const categoryName = categories[parseInt(selected)];
                const categoryValues = ['all', 'processing', 'material'];
                const categoryValue = categoryValues[parseInt(selected)];
                
                // 更新按钮文本
                const categoryBtn = document.querySelector('.category-filter-btn');
                categoryBtn.innerHTML = `<i class="fas fa-filter"></i> ${categoryName}`;
                
                if (categoryValue !== 'all') {
                    categoryBtn.classList.add('filtered');
                } else {
                    categoryBtn.classList.remove('filtered');
                }
                
                // 筛选散料项目
                filterMaterialsByCategory(categoryValue);
                
                console.log('选择分类:', categoryName);
            }
        }

        // 按分类筛选散料项目
        function filterMaterialsByCategory(category) {
            const materialItems = document.querySelectorAll('.material-item');
            
            materialItems.forEach(item => {
                if (category === 'all' || item.dataset.category === category) {
                    item.style.display = 'block';
                } else {
                    item.style.display = 'none';
                }
            });
        }

        // 筛选条件切换
        document.querySelectorAll('.filter-item').forEach(item => {
            item.addEventListener('click', function() {
                document.querySelectorAll('.filter-item').forEach(t => t.classList.remove('active'));
                this.classList.add('active');
                
                // 这里可以根据筛选条件过滤结果
                console.log('筛选条件:', this.textContent);
            });
        });
        
        // 底部导航切换
        document.querySelectorAll('.tab-item').forEach(item => {
            item.addEventListener('click', function() {
                document.querySelectorAll('.tab-item').forEach(t => t.classList.remove('active'));
                this.classList.add('active');
            });
        });
        
        // 散料项目点击效果
        document.querySelectorAll('.material-item').forEach(item => {
            item.addEventListener('click', function() {
                this.style.transform = 'scale(0.98)';
                setTimeout(() => {
                    this.style.transform = '';
                }, 150);
            });
        });
    </script>
</body>
</html>
